#ifndef _TIME_HPP
#define _TIME_HPP

#include <chrono>
#include <cstdint>

inline const std::chrono::steady_clock::time_point GetApplicationStartTime()
{
    static const std::chrono::steady_clock::time_point ApplicationStartTime = std::chrono::steady_clock::now();
    return ApplicationStartTime;
}

inline uint32_t getMSTime()
{
    return uint32_t(std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::steady_clock::now() - GetApplicationStartTime()).count());
}

#endif